package com.framework.admin.mapper;

import com.framework.admin.domain.param.ModuleTableFieldParam;
import com.framework.admin.model.ModuleTableField;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;


/**
 * @description: 模块数据表字段 Mapper
 * @author: lizurong
 * @version: 1.0
 * @date: 2021-03-24 11:18:24
 */

@Mapper
public interface ModuleTableFieldMapper {
    Page<ModuleTableField> listPage(@Param("param") ModuleTableFieldParam param, PageRequest pageRequest);

    String getTableName(@Param("tableName") String tableName);

    List<String> getDbColumnsByTableName(@Param("tableName") String tableName);

    List<String> getColumnsByTableName(@Param("tableName") String tableName);

    ModuleTableField getOne(@Param("id") String id);

    void deleteByTableName(@Param("tableName") String tableName);
}
